/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xos_ffmpeg.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#include "../import/head.h"
#include "../helper_objs/head.h"
#include "../data_struct/head.h"
#include "../msg_main/head.h"
#include "../macro/head.h"
#include "../impl/head.h"
#include "../msg/head.h"
#include "sdl2_impl.h"
#include "objs.h"

namespace xos_ffmpeg
{

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // 

    sdl2_impl::sdl2_impl() : m_pObj(0)
    {
    }

    sdl2_impl::~sdl2_impl()
    {
    }

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // 

    int sdl2_impl::static_init()
    {
        int ret = 0;

        if( 0 == ret )
        {
            ret = sdl2_yuv::static_init();
        }

        return ret;
    }

    int sdl2_impl::static_term()
    {
        int ret = 0;
        ret = sdl2_yuv::static_term();
        return ret;
    }

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // proc

    int sdl2_impl::notify()
    {
        int ret = 0;
        ret = m_pObj->notify();
        return ret;
    }

    int sdl2_impl::heart()
    {
        int ret = 0;
        ret = m_pObj->heart();
        return ret;
    }

    int sdl2_impl::wait()
    {
        int ret = 0;
        ret = m_pObj->wait();
        return ret;
    }

    int sdl2_impl::init()
    {
        int ret = 0;

        if( 0 == ret )
        {
            ret = xos_stl::init_item( m_pObj );
        }

        return ret;
    }

    int sdl2_impl::term()
    {
        int ret = 0;
        xos_stl::term_item( m_pObj );
        return ret;
    }


} // xos_ffmpeg
